#ifndef _SOMB_LOCK_H_                                
#define _SOMB_LOCK_H_

#include <stdatomic.h>

typedef struct {
    atomic_int lock;
} somb_spinlock_t;

extern void somb_spinlock_init(somb_spinlock_t *lock);

extern void somb_spinlock_acquire(somb_spinlock_t *lock);

extern void somb_spinlock_release(somb_spinlock_t *lock) ;
#endif //_SOMB_LOCK_H_

